package org.jeecg.common.login.parameter;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 原生登录入参
 *
 * @author jiangtianyi
 * @version 1.0
 * @date 2023-03-09
 */
@Data
public class OriginalParameter implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 账号
     */
    @NotEmpty(message = "用户名为空！")
    private String username;

    /**
     * 密码
     */
    @NotEmpty(message = "密码为空！")
    private String password;

    /**
     * 图形验证码
     */
    @NotEmpty(message = "验证码为空！")
    private String captcha;

    /**
     * 图形验证码key
     */
    @NotNull(message = "验证码Key为空！")
    private String checkKey;

}
